<?php

include_once ('bd/ModeloBD.php');

class ModeloNivelEstudio extends ModeloBD {

    private $necodsx;
    private $nenombre;
    private $neobservacion;
    private $neestado;

    public function __construct($necodsx = "", $nenombre = "", $neobservacion = "", $neestado = "") {
        $this->_oBaseDatos = CBaseDatos::get_instancia();
        $this->_oBaseDatos->conectar();
        $this->_sTabla = "nivelestudio";
        $this->necodsx = $necodsx;
        $this->nenombre = $nenombre;
        $this->neobservacion = $neobservacion;
        $this->neestado = $neestado;
    }

    public function listaNivelEstudio() {
        $arArea = null;
        $sSQL = "
            SELECT *
            FROM $this->_sTabla ;";
        $arArea = $this->query_object($sSQL);
//        var_dump($arSucursal['usuario'][0]['usucodsx']); //QUERY
//        var_dump($arSucursal[0]->usucodsx); //QUERY_OBJECT
        return $arArea;
    }

}

?>